import request from '@/utils/request'
// 登录记录列表
export function getUserLoginLogList(query) {
  return request({
    url: '/rest/common/userLoginLog/list',
    method: 'post',
    data: query
  })
}
// 刪除登录记录
export function postDeleteUserLoginLog(query) {
  return request({
    url: '/rest/common/userLoginLog/delete',
    method: 'post',
    data: query
  })
}
  // 用户列表
  export function getUserList(query) {
    return request({
      url: '/rest/system/user/list',
      method: 'post',
      data: query
    })
  }
  // 新增用户
  export function postAddUser(query) {
      return request({
        url: '/rest/system/user/add',
        method: 'post',
        data: query
      })
    }
    // 刪除用户
    export function postDeleteUser(query) {
      return request({
        url: '/rest/system/user/delete',
        method: 'post',
        data: query
      })
    }
  // 获取单个用户
  export function getUserById(query) {
    return request({
      url: `/rest/system/user/findOne`,
      method: 'post',
      data: query
    })
  }
  // 修改用户
  export function postUpdateUser(query) {
    return request({
      url: `/rest/system/user/update`,
      method: 'post',
      data: query
    })
  }
